/**
* @program: src
*
* @description:
*
* @author: Mr.chen
*
* @create: 2022-04-11 16:57
**/
package logic
import (
	"context"
	"do_demo/srv/app/logic/rpc/internal/svc"
	"do_demo/srv/common/core/logx"
	"do_demo/srv/common/perr"
	pb "do_demo/srv/proto/logic"
	//"time"
)

var ErrUserNoExistsError = perr.NewErrMsg("账号不存在")
var ErrUsernamePwdError = perr.NewErrMsg("账号或密码不正确")
type TestSrvLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewTestSrvLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TestSrvLogic {
	return &TestSrvLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}


func (l *TestSrvLogic) TestSrv(in *pb.TestSrvReq) (*pb.TestSrvReply, error) {
	resp :=&pb.TestSrvReply{
		Msg:"ok",
	}
	//time.Sleep(2*time.Second)
	return resp,nil
}
